<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- Viewport-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
    <!-- SEO Meta Tags-->
    <meta name="keywords" content="quicky, chat, messenger, conversation, social, communication" />
    <meta name="description" content="Quicky is a Bootstrap based modern and fully responsive Messaging template to help build Messaging or Chat application fast and easy." />
    <meta name="subject" content="communication">
    <meta name="copyright" content="frontendmatters">
    <meta name="revised" content="Sunday, July 18th, 2010, 5:15 pm" />
    <title>{:$configs['SYSTEM_NAME']}</title>
    <!-- Favicon and Touch Icons-->
    <link rel="apple-touch-icon" sizes="180x180" href="./../apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="./../favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="./../favicon-16x16.png">
    <link rel="shortcut icon" href="./../favicon.ico" />
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">
</head>

<body class="authentication-page">

 
  

    <!-- Javascript Files -->
    <!-- <script src="__STATIC__/index/vendors/jquery/jquery-3.5.0.min.js"></script> -->
    <script src="https://falv.biaocloud.cn/static/index/vendors/jquery/jquery-3.5.0.min.js"></script>
    
    <script type="text/javascript">
        $(function(){
            
          getAppTokenSync();
            
        });

        const microApp = parent.window.__MicroAPP__
        const getAppTokenSync = async() => {
          const token = await microApp.help.getAppTokenSync(window)
          console.log(token)
          // syncToken.value = token

          $.ajax({
              url:'{:url("user/tokenCheck360")}',
              data:{token:token},
              type:'post',
              dataType:'json',
              success:function(data){
                console.log(data)
                if (data.code == '2000') {
                  // alert('登录成功');
                  window.location.href = '{:url("index/index")}?x_access_token='+data.x_access_token;
                }else{
                  alert(data.msg);
                }
              }
          });
        }
    </script>
</body>

</html>